package com.lcf.demo;

public class Student {
//    定义四个属性
    private String sN0;
    private  String sName;
    private   String  sSex;
     private  int  sAge;
     private  double sJava;
//      定义参数


    public Student() {
    }

    public Student(String sN0, String sName, String sSex, int sAge, double sJava) {
        this.sN0 = sN0;
        this.sName = sName;
        this.sSex = sSex;
        this.sAge = sAge;
        this.sJava = sJava;
    }

    //    调用set get 方法


    public String getsN0() {
        return sN0;
    }

    public void setsN0(String sN0) {
        this.sN0 = sN0;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getsSex() {
        return sSex;
    }

    public void setsSex(String sSex) {
        this.sSex = sSex;
    }

    public int getsAge() {
        return sAge;
    }

    public void setsAge(int sAge) {
        this.sAge = sAge;
    }

    public double getsJava() {
        return sJava;
    }

    public void setsJava(double sJava) {
        this.sJava = sJava;
    }


    public  void displayInfo(){
        System.out.println("学号: " + sN0+ ", 姓名: " + sName + ", 性别: " + sSex + ", 年龄: " + sAge + ", Java成绩: " + sJava);
    }


}



